﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Web;
using FastReflectionLib;
using Newtonsoft.Json;
using System.Data;
using Newtonsoft.Json.Linq;
using Senparc.Weixin.QY.Entities;
using System.Net;
using SZHL.UI.AppCode;
using SZHL.Data;

namespace SZHL.UI.API
{
    public class ListManage : IWsService
    {
        public void ProcessRequest(HttpContext context, ref Msg_Result msg, string P1, string P2, JH_Auth_UserB.UserInfo UserInfo)
        {

            string ListAction = context.Request["ListAction"] ?? "";

            if (ListAction != "")
            {
                MethodInfo methodInfo = typeof(ListManage).GetMethod(ListAction.ToUpper());
                ListManage model = new ListManage();
                methodInfo.FastInvoke(model, new object[] { context, msg, P1, P2, UserInfo.User.UserName });
            }
            else
            {
                MethodInfo methodInfo = typeof(ListManage).GetMethod(msg.Action.ToUpper());
                ListManage model = new ListManage();
                methodInfo.FastInvoke(model, new object[] { context, msg, P1, P2, UserInfo.User.UserName });
            }

        }
    }
}